<?php

namespace IDock\Insurance\HBIC\Request;

use IDock\Insurance\HBIC\Response\RenewalInquiryResponse;
use IDock\Visitor\RenewalInquiryVisitor;

class RenewalInquiryRequest extends AllHBICRequest
{
    public $requestType = 'A06';

    protected $urlTip = '续保查询';

    protected $response = RenewalInquiryResponse::class;

    /**
     * @var RenewalInquiryVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        return [
            'baseInfo' => [
                'PolicyNo' => '',
                'VinNo' => $this->visitor->vin,
                'UwYear' => '',
                'LicenseNo' => $this->visitor->licenseNo,
            ],
            'methodName' => 'queryPolicy',
            'resourceType' => 'BXT',
        ];
    }

    public function getStaffValue(&$comCode)
    {
        $comCode = $this->visitor->argc['comCode'] ?? '';
    }

}